
function page_change () {
    var btn = document.querySelectorAll('.tab')
var iframe = document.querySelectorAll('#iframe')
iframe[0].style.display='block'
btn[0].onclick = function () {
    iframe[0].style.display = "block";
    iframe[1].style.display = "none";
}
btn[1].onclick = function () {
    iframe[0].style.display = "none";
    iframe[1].style.display = "block";
}
}
function get_w (w){
    var w=document.querySelector('w')
    var W=w.style.width
console.log(W);
}

function self_adaption(){
    var dom=document.querySelector('')
}
function a(){
    var nav=document.querySelector('.top-right')
    var a=nav.style.cssText
    console.log(a);
}

function inputs(){
    var inputs=document.querySelector('#sidebarMenu');
    inputs.style.transform='translateX(-250px)';
}
function show(){
    var inputs=document.querySelector('#sidebarMenu');
    var main_nav=document.getElementById('main_nav');
    if(main_nav.style.display=='none'){
        main_nav.style.display='block';
    inputs.style.transform='translateX(0px)';
    }
    else{
        main_nav.style.display='none';
    inputs.style.transform='translateX(-250px)';
    }
}
function changeFrameHeight(){
    undefined
var ifm=document.querySelectorAll('#iframe');
for (var i=0; i<ifm.length;i++){
    undefined
    ifm[i].height=document.documentElement.clientHeight;
}
}
changeFrameHeight()
function windows(params) {
    window.onresize=function (){
    changeFrameHeight();
    compatibility(params);
    
}
}
function compatibility(a){
    undefined
    var w=document.body.scrollWidth;
    var h=document.body.scrollHeight;
    var main_nav=document.getElementById('main_nav')
    var oCss=document.querySelector('#css');
    console.log(w);
    if (w<820){oCss.href=a+'css/compatibility00001.css';
        main_nav.style.display='none';
        inputs();
        a_click()
    }
    else{
        oCss.href=a+'css/style00001.css';
        main_nav.style.display='block';
    }
    console.log(h);
}
function a_click(){
    var a=document.querySelectorAll('a');
    for(var i = 0;i<a.length;i++){
        undefined
        a[i].onclick=function(){
            show()
        }
    }
}